package com.chuangshi.core.vote.admin.controller.admin.request;

import com.chuangshi.core.kit.Request;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Digits;
import javax.validation.constraints.NotNull;

/**
 * 管理员信息管理端V1修改接收参数
 *
 * @author ggliming
 * @date 2019-02-21
 */
@ApiModel(description = "管理员信息管理端V1修改接收参数")
public class AdminAdminV1UpdateRequest extends Request {

    @ApiModelProperty(value = "管理员编号", required = true, position = 10)
    @NotNull(message = "管理员编号不能为空")
    @Length(max = 32, message = "管理员编号长度超出限制")
    private String adminId;

    @ApiModelProperty(value = "管理员用户编号", required = true, position = 20)
    @Length(max = 32, message = "管理员用户编号长度超出限制")
    private String adminUserId;

    @ApiModelProperty(value = "账号名称", required = true, position = 30)
    @NotNull(message = "账号名称不能为空")
    @Length(max = 100, message = "账号名称长度超出限制")
    private String adminAccount;

    @ApiModelProperty(value = "账号密码", required = true, position = 40)
    @NotNull(message = "账号密码不能为空")
    @Length(max = 100, message = "账号密码长度超出限制")
    private String adminPassword;

    @ApiModelProperty(value = "版本号", required = true, position = 50)
    @NotNull(message = "版本号不能为空")
    @Digits(integer = 11, fraction = 0, message = "版本号长度超出限制")
    private Integer systemVersion;

    public String getAdminId() {
        return adminId;
    }

    public void setAdminId(String adminId) {
        this.adminId = adminId;
    }

    public String getAdminUserId() {
        return adminUserId;
    }

    public void setAdminUserId(String adminUserId) {
        this.adminUserId = adminUserId;
    }

    public String getAdminAccount() {
        return adminAccount;
    }

    public void setAdminAccount(String adminAccount) {
        this.adminAccount = adminAccount;
    }

    public String getAdminPassword() {
        return adminPassword;
    }

    public void setAdminPassword(String adminPassword) {
        this.adminPassword = adminPassword;
    }

    public Integer getSystemVersion() {
        return systemVersion;
    }

    public void setSystemVersion(Integer systemVersion) {
        this.systemVersion = systemVersion;
    }


}